package com.example.demo.service.interf;

import com.example.demo.entity.UserEntity;

/**
 * Created by hongzhenyue on 18/3/6.
 */
public interface UserService {
    /**
     * 添加新用户
     *
     * username 唯一， 默认 USER 权限
     */
    int insert(UserEntity userEntity);

    /**
     * 查询用户信息
     * @param username 账号
     * @return UserEntity
     */
    UserEntity getByUsername(String username);
}
